package com.kdx.cloud.common.domain;

import com.kdx.cloud.common.utils.MD5Util;

public class User {
    private String userId;

    private String userName;

    private String password;

    private String projectId;

    private String departId;

    private String positionId;

    private String tel;

    private String mobile;

    private String qq;

    private String wechat;

    private String address;

    private String email;

    private String lastModifyDate;

    private String isFirstLogin;

    private Integer wrongPwdCount;

    private String wrongPwdDate;

    private String isUserLocked;

    private String userLockedReson;

    private String startDate;

    private String endDate;

    private String createTime;

    private String description;

    private String enabled;

    private String isDelete;

    private String lastLoginDate;

    private String passwordInited;

    private String ipLocked;

    private String workState;

    private String changeStatus;

    private String changeUser;

    private String checkUser;

    private String lastLoginIp;

    private byte[] portrait;
    
    private String roleName;
    
    private String[] roleNames;
    
    private String departName;
    
    
    

	public String getDepartName() {
		return departName;
	}

	public void setDepartName(String departName) {
		this.departName = departName;
	}

	public String[] getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String[] roleNames) {
		this.roleNames = roleNames;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLastModifyDate() {
        return lastModifyDate;
    }

    public void setLastModifyDate(String lastModifyDate) {
        this.lastModifyDate = lastModifyDate;
    }

    public String getIsFirstLogin() {
        return isFirstLogin;
    }

    public void setIsFirstLogin(String isFirstLogin) {
        this.isFirstLogin = isFirstLogin;
    }

    public Integer getWrongPwdCount() {
        return wrongPwdCount;
    }

    public void setWrongPwdCount(Integer wrongPwdCount) {
        this.wrongPwdCount = wrongPwdCount;
    }

    public String getWrongPwdDate() {
        return wrongPwdDate;
    }

    public void setWrongPwdDate(String wrongPwdDate) {
        this.wrongPwdDate = wrongPwdDate;
    }

    public String getIsUserLocked() {
        return isUserLocked;
    }

    public void setIsUserLocked(String isUserLocked) {
        this.isUserLocked = isUserLocked;
    }

    public String getUserLockedReson() {
        return userLockedReson;
    }

    public void setUserLockedReson(String userLockedReson) {
        this.userLockedReson = userLockedReson;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public String getLastLoginDate() {
        return lastLoginDate;
    }

    public void setLastLoginDate(String lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    public String getPasswordInited() {
        return passwordInited;
    }

    public void setPasswordInited(String passwordInited) {
        this.passwordInited = passwordInited;
    }

    public String getIpLocked() {
        return ipLocked;
    }

    public void setIpLocked(String ipLocked) {
        this.ipLocked = ipLocked;
    }

    public String getWorkState() {
        return workState;
    }

    public void setWorkState(String workState) {
        this.workState = workState;
    }

    public String getChangeStatus() {
        return changeStatus;
    }

    public void setChangeStatus(String changeStatus) {
        this.changeStatus = changeStatus;
    }

    public String getChangeUser() {
        return changeUser;
    }

    public void setChangeUser(String changeUser) {
        this.changeUser = changeUser;
    }

    public String getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(String checkUser) {
        this.checkUser = checkUser;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public byte[] getPortrait() {
        return portrait;
    }

    public void setPortrait(byte[] portrait) {
        this.portrait = portrait;
    }
    
    public void encodePassword() {
		if (this.getPassword() != null) {
			this.password = MD5Util.encodePassword(this.getPassword(), this.getUserId());
		}
	}
}